// types/security.ts
export interface Permission {
  id: number
  name: string
  description: string
  resource: string
  action: string
  createdAt: string
  updatedAt: string
}

export interface RolePermission {
  id: number
  roleId: number
  permissionId: number
  createdAt: string
}

export interface SecurityLog {
  id: number
  userId: number
  action: string
  resource: string
  ipAddress: string
  userAgent: string
  status: 'success' | 'failed'
  details?: string
  createdAt: string
}

export interface ComplianceRecord {
  id: number
  title: string
  description: string
  status: 'compliant' | 'non-compliant' | 'pending'
  checkedBy: number
  checkedAt: string
  nextCheckAt?: string
  evidence?: string
  createdAt: string
  updatedAt: string
}